<?php

$http = new \Swoole\Http\Server('127.0.0.1', 9503);

$http->on('request', function ($request, $response) {
    //var_dump($request->get, $request->post);
    //$response->header('Content-type', 'text/html;charset=utf-8');
    $response->end('<h1>Hello Swoole. #' . rand(1000, 9999) . "</h1>");
});

$http->start();
